{\rtf1\ansi\ansicpg936\cocoartf1671\cocoasubrtf200
{\fonttbl\f0\fnil\fcharset0 Menlo-Regular;\f1\fswiss\fcharset0 Helvetica;\f2\fnil\fcharset134 PingFangSC-Regular;
}
{\colortbl;\red255\green255\blue255;\red100\green56\blue32;\red255\green255\blue255;\red196\green26\blue22;
\red170\green13\blue145;\red0\green0\blue0;\red63\green110\blue116;\red92\green38\blue153;\red38\green71\blue75;
\red46\green13\blue110;\red28\green0\blue207;}
{\*\expandedcolortbl;;\csgenericrgb\c39100\c22000\c12500;\csgenericrgb\c100000\c100000\c100000;\csgenericrgb\c77000\c10200\c8600;
\csgenericrgb\c66500\c5200\c56900;\csgenericrgb\c0\c0\c0;\csgenericrgb\c24700\c43100\c45600;\csgenericrgb\c35900\c14900\c60100;\csgenericrgb\c14900\c27800\c29400;
\csgenericrgb\c18100\c5200\c43100;\csgenericrgb\c11000\c0\c81000;}
\paperw12240\paperh15840\margl1440\margr1440\vieww9000\viewh8400\viewkind0
\deftab626
\pard\tx626\pardeftab626\pardirnatural\partightenfactor0

\f0\fs26 \cf2 \cb3 #import \cf4 \cb3 "FKHomeNewCell.h"
\f1\fs24 \cf0 \cb3 \
\

\f0\fs26 \cf5 @interface\cf6  \cf7 FKHomeNewCell\cf6  ()
\f1\fs24 \cf0 \
\

\f0\fs26 \cf5 @property\cf6  (\cf5 nonatomic\cf6 , \cf5 weak\cf6 ) \cf8 UIImageView\cf6  *pictureView;
\f1\fs24 \cf0 \

\f0\fs26 \cf5 @property\cf6  (\cf5 nonatomic\cf6 , \cf5 weak\cf6 ) \cf8 UILabel\cf6  *titleLabel;
\f1\fs24 \cf0 \

\f0\fs26 \cf5 @property\cf6  (\cf5 nonatomic\cf6 , \cf5 weak\cf6 ) \cf8 UILabel\cf6  *priceLabel;
\f1\fs24 \cf0 \
\

\f0\fs26 \cf5 @end
\f1\fs24 \cf0 \
\

\f0\fs26 \cf5 @implementation\cf6  FKHomeNewCell
\f1\fs24 \cf0 \
\

\f0\fs26 \cf6 - (\cf5 void\cf6 )setupSubviews
\f1\fs24 \cf0 \

\f0\fs26 \cf6 \{
\f1\fs24 \cf0 \

\f0\fs26 \cf6     [\cf5 super\cf6  \cf9 setupSubviews\cf6 ];
\f1\fs24 \cf0 \

\f0\fs26 \cf6     
\f1\fs24 \cf0 \

\f0\fs26 \cf6     \cf8 UIImageView\cf6  *pictureView = [[\cf8 UIImageView\cf6  \cf10 alloc\cf6 ] \cf10 init\cf6 ];
\f1\fs24 \cf0 \

\f0\fs26 \cf6     [\cf5 self\cf6 .\cf8 contentView\cf6  \cf10 addSubview\cf6 :pictureView];
\f1\fs24 \cf0 \

\f0\fs26 \cf6     \cf5 self\cf6 .\cf7 pictureView\cf6  = pictureView;
\f1\fs24 \cf0 \

\f0\fs26 \cf6     [pictureView \cf9 fk_viewCornerRadius\cf6 :\cf11 5\cf6  \cf9 borderWidth\cf6 :\cf11 0\cf6  \cf9 borderColor\cf6 :\cf5 nil\cf6 ];
\f1\fs24 \cf0 \

\f0\fs26 \cf6     
\f1\fs24 \cf0 \

\f0\fs26 \cf6     \cf8 UILabel\cf6  *titleLabel = [\cf8 UILabel\cf6  \cf9 fk_labelWithFont\cf6 :\cf9 fk_adjustFont\cf6 (\cf11 15\cf6 ) \cf9 textColor\cf6 :\cf2 fkColor333333\cf6 ];
\f1\fs24 \cf0 \

\f0\fs26 \cf6     [\cf5 self\cf6 .\cf8 contentView\cf6  \cf10 addSubview\cf6 :titleLabel];
\f1\fs24 \cf0 \

\f0\fs26 \cf6     \cf5 self\cf6 .\cf7 titleLabel\cf6  = titleLabel;
\f1\fs24 \cf0 \

\f0\fs26 \cf6     titleLabel.\cf8 numberOfLines\cf6  = \cf11 2\cf6 ;
\f1\fs24 \cf0 \

\f0\fs26 \cf6     
\f1\fs24 \cf0 \

\f0\fs26 \cf6     \cf8 UILabel\cf6  *priceLabel = [\cf8 UILabel\cf6  \cf9 fk_labelWithFont\cf6 :\cf9 fk_adjustFont\cf6 (\cf11 12\cf6 ) \cf9 textColor\cf6 :\cf2 fkPriceRed\cf6 ];
\f1\fs24 \cf0 \

\f0\fs26 \cf6     [\cf5 self\cf6 .\cf8 contentView\cf6  \cf10 addSubview\cf6 :priceLabel];
\f1\fs24 \cf0 \

\f0\fs26 \cf6     \cf5 self\cf6 .\cf7 priceLabel\cf6  = priceLabel;
\f1\fs24 \cf0 \

\f0\fs26 \cf6     
\f1\fs24 \cf0 \

\f0\fs26 \cf6     \cf8 UIButton\cf6  *promotionBtn = [\cf8 UIButton\cf6  \cf9 fk_btnWithTarget\cf6 :\cf5 nil\cf6  \cf9 action\cf6 :\cf5 nil\cf6  \cf9 font\cf6 :\cf9 fk_adjustFont\cf6 (\cf11 15\cf6 ) \cf9 normalTitle\cf6 :\cf4 \cb3 @"
\f2 \'c1\'a2\'bc\'b4\'cd\'c6\'b9\'e3
\f0 "\cf6 \cb3  \cf9 normalTitleColor\cf6 :\cf2 fkPriceRed\cf6  \cf9 selectedTitle\cf6 :\cf5 nil\cf6  \cf9 selectedTitleColor\cf6 :\cf5 nil\cf6  \cf9 normalImg\cf6 :\cf5 nil\cf6  \cf9 selectedImg\cf6 :\cf5 nil\cf6  \cf2 bgImg\cf6 :\cf5 nil\cf6  \cf9 selectedBgImg\cf6 :\cf5 nil\cf6 ];
\f1\fs24 \cf0 \

\f0\fs26 \cf6     [\cf5 self\cf6 .\cf8 contentView\cf6  \cf10 addSubview\cf6 :promotionBtn];
\f1\fs24 \cf0 \

\f0\fs26 \cf6     [promotionBtn \cf9 fk_viewCornerRadius\cf6 :\cf11 5\cf6  \cf9 borderWidth\cf6 :\cf11 0\cf6  \cf9 borderColor\cf6 :\cf5 nil\cf6 ];
\f1\fs24 \cf0 \

\f0\fs26 \cf6 \}
\f1\fs24 \cf0 \
\

\f0\fs26 \cf6 - (\cf5 void\cf6 )setData:(\cf5 id\cf6 )data
\f1\fs24 \cf0 \

\f0\fs26 \cf6 \{
\f1\fs24 \cf0 \

\f0\fs26 \cf6     [\cf5 super\cf6  \cf9 setData\cf6 :data];
\f1\fs24 \cf0 \

\f0\fs26 \cf6     
\f1\fs24 \cf0 \

\f0\fs26 \cf6     
\f1\fs24 \cf0 \

\f0\fs26 \cf6 \}
\f1\fs24 \cf0 \
\

\f0\fs26 \cf5 @end}